package com.yeskery.nut.web.demo.event;

import com.yeskery.nut.event.ApplicationContextStartedEvent;
import com.yeskery.nut.event.ApplicationListener;

import java.util.logging.Logger;

/**
 * 应用上下文事件监听器
 * @author YESKERY
 * 2023/9/12
 */
public class ApplicationContextStartedListener implements ApplicationListener<ApplicationContextStartedEvent> {

    /** 日志对象 */
    private static final Logger logger = Logger.getLogger(ApplicationContextStartedListener.class.getName());
    @Override
    public void onApplicationEvent(ApplicationContextStartedEvent event) {
        logger.info("上下文启动完成");
    }
}
